package com.dianxin.farm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* <p>
    * 公司角色信息表
    * </p>
*
* @author xukai
* @since 2020-11-30
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @ApiModel(value="Manager对象", description="公司角色信息表")
    public class Manager implements Serializable {

    private static final long serialVersionUID = 1L;

            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer enterpriseId;

            @ApiModelProperty(value = "当前账号所属是否总公司0总公司 1分公司")
    private Integer father;

    private LocalDateTime createTime;

    private String accountName;

            @ApiModelProperty(value = "账号密码，默认123456")
    private String accountPassword;

    private String phone;

    private String name;

            @ApiModelProperty(value = "管理员父级公司的id")
    private Integer parentId;

            @ApiModelProperty(value = "权限id")
    private Integer authId;

    private String token;

            @ApiModelProperty(value = "是否超管账号，0否 1是超管")
    private Integer isPrimary;


}
